package com.hwtx.form.persistence.ds;

import com.hwtx.form.persistence.ds.metadata.Column;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class RunValue {
    private String key;
    private Object value;
    private Column column;

    private boolean placeholder = true;

    public RunValue() {
    }

    public RunValue(Column column, Object value) {
        if (null == column) {
            this.key = "none";
        } else {
            this.key = column.getName();
        }
        this.column = column;
        this.value = value;
    }

    public RunValue(String key, Object value) {
        this.key = key;
        this.value = value;
    }

}
